home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CICA 1994 April
/
CICA Shareware for Windows CD-ROM (Walnut Creek CD-ROM)(April 1994).ISO
/
win3
/
nt
/
c320nt.exe
/
OEMSETUP.INF
< prev
Wrap
INI File
|
1994-01-17
|
35KB
|
805 lines
[Identification]
OptionType = NetAdapter
[PlatformsSupported]
EISA
[LanguagesSupported]
ENG
[Options]
CresNT
[OptionsTextENG]
CresNT = "Cisco CDDI/FDDI EISA Adapter"
[FileConstants]
UtilityInf = "UTILITY.INF"
subroutineinf = "SUBROUTN.INF"
SoftwareType = "driver"
Exit_Code = 0
NetEventDLL = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
COMPRESSEDID_MASK = 4294967295
C320_EISA_ID = 53629710
C320T_EISA_ID = 70406926
Manufacturer = "Microsoft"
ProductMajorVersion = "3"
ProductMinorVersion = "1"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ThisInfFileName = ""
[GeneralConstants]
from = ""
to = ""
ExitCodeOk = 0
ExitCodeCancel = 1
ExitCodeFatal = 2
KeyNull = ""
MAXIMUM_ALLOWED = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct = ""
KeyParameters = ""
TRUE = 1
FALSE = 0
NoTitle = 0
ExitState = "Active"
OldVersionC320NTExisted = $(FALSE)
OldVersionC320TNTExisted = $(FALSE)
DriverPath = $(!STF_NTPATH)\drivers
[FileConstantsENG]
ProCaption = "Windows NT Setup"
ProCancel = "Cancel"
ProCancelMsg = "Windows NT Networking is not correctly installed. "+
"Are you sure you want to cancel copying files?"
ProCancelCap = "Network Setup Message"
ProText1 = "Copying:"
ProText2 = "To:"
FunctionTitle = "Cisco CDDI/FDDI EISA Adapter Setup"
ProductSoftwareC320NTDescription = "Cisco CDDI/FDDI EISA Driver"
ProductHardwareC320NTDescription = "Cisco CDDI/FDDI EISA Adapter"
ProductSoftwareC320NTName = "c320nt"
ProductSoftwareC320NTTitle = "Cisco CDDI/FDDI EISA Driver"
ProductSoftwareC320NTImagePath = "\SystemRoot\System32\drivers\c320nt.sys"
NetRuleSoftwareC320NTType = "c320ntSys ndisDriver c320ntDriver"
NetRuleSoftwareC320NTUse = $(SoftwareType)
NetRuleSoftwareC320NTBindForm = """c320ntSys"" yes no container"
NetRuleSoftwareC320NTClass = {"c320ntDriver basic"}
NetRuleSoftwareC320NTBindable = {"c320ntDriver c320ntAdapter non exclusive 100"}
ProductHardwareC320NTName = "C320NT"
ProductHardwareC320NTTitle = "Cisco CDDI/FDDI EISA Adapter"
NetRuleHardwareC320NTType = "c320nt c320ntAdapter"
NetRuleHardwareC320NTBindForm = " yes yes container"
NetRuleHardwareC320NTClass = {"c320ntAdapter basic"}
ProductKeyC320NTName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareC320NTName)"\CurrentVersion"
ParamKeyC320NTName = $(!NTN_ServiceBase)$(ProductHardwareC320NTName)"\Parameters"
; Turbo Adapter defines
ProductSoftwareC320TNTDescription = "Cisco CDDI/FDDI EISA Driver"
ProductHardwareC320TNTDescription = "Cisco CDDI/FDDI EISA Adapter"
ProductSoftwareC320TNTName = "c320tnt"
ProductSoftwareC320TNTTitle = "Cisco CDDI/FDDI EISA Driver"
ProductSoftwareC320TNTImagePath = "\SystemRoot\System32\drivers\c320tnt.sys"
NetRuleSoftwareC320TNTType = "c320tntSys ndisDriver c320tntDriver"
NetRuleSoftwareC320TNTUse = $(SoftwareType)
NetRuleSoftwareC320TNTBindForm = """c320tntSys"" yes no container"
NetRuleSoftwareC320TNTClass = {"c320tntDriver basic"}
NetRuleSoftwareC320TNTBindable = {"c320tntDriver c320tntAdapter non exclusive 100"}
ProductHardwareC320TNTName = "C320TNT"
ProductHardwareC320TNTTitle = "Cisco CDDI/FDDI EISA Adapter"
NetRuleHardwareC320TNTType = "c320tnt c320tntAdapter"
NetRuleHardwareC320TNTBindForm = " yes yes container"
NetRuleHardwareC320TNTClass = {"c320tntAdapter basic"}
ProductKeyC320TNTName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareC320TNTName)"\CurrentVersion"
ParamKeyC320TNTName = $(!NTN_ServiceBase)$(ProductHardwareC320TNTName)"\Parameters"
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
[date]
Now = {} ? $(!LIBHANDLE) GetSystemDate
[Identify]
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
ifstr(i) $($1) == ""
goto returnoptions
endif
set PlatformList = ^(PlatformsSupported, 1)
Ifcontains(i) $($1) in $(PlatformList)
goto returnoptions
else
set Status = STATUS_NOTSUPPORTED
goto finish_ReturnOptions
endif
else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
endif
returnoptions = +
set OptionList = ^(Options, 1)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
[InstallOption]
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
endif
set-subst LF = "\n"
read-syms GeneralConstants
read-syms FileConstants
read-syms DialogConstants$(!STF_LANGUAGE)
ifstr(i) $(!NTN_Origination) == "NCPA"
set Continue = "OK"
endif
read-syms FileConstants$(!STF_LANGUAGE)
detect date
set-title $(FunctionTitle)
set to = Begin
set from = Begin
set CommonStatus = STATUS_SUCCESSFUL
; Get my INF Filename
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
CloseRegKey $(KeyProduct)
Debug-Output " ShellCode error"
goto ShellCodeError
endif
CloseRegKey $(KeyProduct)
set ThisInfFileName = $($R0)
else
set ThisInfFileName = CRES
endif
EndWait
Begin = +
Ifstr(i) $(!NTN_InstallMode) == deinstall
set StartLabel = removeadapter
else-Ifstr(i) $(!NTN_InstallMode) == Update
set StartLabel = UpgradeSoftware
else-Ifstr(i) $(!NTN_InstallMode) == bind
set StartLabel = bindingadapter
else-Ifstr(i) $(!NTN_InstallMode) == configure
set CommonStatus = STATUS_REBOOT
Debug-Output $(ThisInfFileName)" Configure: Product Key Name is "$(ProductKeyName)" NTN_RegBase is "$(!NTN_RegBase)
Ifstr(i) $(ProductKeyC320NTName) == $(!NTN_RegBase)
Debug-Output $(ThisInfFileName)" Cannot configure the CresNT driver software."
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
else-Ifstr(i) $(ProductKeyC320TNTName) == $(!NTN_RegBase)
Debug-Output $(ThisInfFileName)" Cannot configure the CresNT driver software."
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
else
Debug-Output $(ThisInfFileName)" Cannot configure the CresNT adapter card."
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
set from = end
set to = end
goto nonfatalinfo
else
set StartLabel = installadapter
set OEM_ABANDON_HW_OPTIONS = {}
set OEM_ABANDON_SW_OPTIONS = {}
set OEM_ABANDON_ON = TRUE
endif
set from = $(fatal)
set to = $(fatal)
Debug-Output $(ThisInfFileName)" =================================================="
Debug-Output $(ThisInfFileName)" STF_CWDIR is: "$(!STF_CWDIR)
Debug-Output $(ThisInfFileName)" Selected Option is: "$(Option)
Debug-Output $(ThisInfFileName)" =================================================="
goto $(StartLabel)
installadapter = +
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyC320NTName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
Debug-Output $(ThisInfFileName)" Opened Product Key for "$(ProductKeyC320NTName)
CloseRegKey $(KeyProduct)
ifstr(i) !(NTN_RegBase) == $(ProductKeyC320NTName)
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareC320NTTitle),+
$(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error: cannot get an error string."
goto ShellCodeError
endif
goto end
endif
set OldVersionC320NTExisted = $(TRUE)
endif
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyC320TNTName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
Debug-Output $(ThisInfFileName)" Opened Product Key for "$(ProductKeyC320TNTName)
CloseRegKey $(KeyProduct)
ifstr(i) !(NTN_RegBase) == $(ProductKeyC320TNTName)
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareC320TNTTitle),+
$(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error: cannot get an error string."
goto ShellCodeError
endif
goto end
endif
set OldVersionC320TNTExisted = $(TRUE)
endif
goto nextstep
configureadapter = +
set Error = "Configure: Sorry not yet implemented."
goto fatal
nextstep = +
StartWait
installproduct = +
Debug-Output $(ThisInfFileName)" Installing product, Shelling to find Cisco EISA Adapters"
Shell $(UtilityInf), EISAFindBus, $(C320_EISA_ID) $(COMPRESSEDID_MASK)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr $($R0) != "NO_ERROR"
set Error = $($R0)
goto fatal
endif
set CardInfo = {}
ifstr(i) $($R1) != {}
set CardInfo = $($R1)
endif
Debug-Output $(ThisInfFileName)" Shelling to find Cisco EISA Adapters"
Shell $(UtilityInf), EISAFindBus, $(C320T_EISA_ID) $(COMPRESSEDID_MASK)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr $($R0) != "NO_ERROR"
set Error = $($R0)
goto fatal
endif
ifstr(i) $($R1) != {}
ifstr(i) $(CardInfo) != {}
ForListDo $($R1)
set CardInfo = >($(CardInfo), $($))
EndForListDo
else
set CardInfo = $($R1)
endif
endif
ifstr(i) $(CardInfo) == {}
Debug-Output $(ThisInfFileName)" Cannot find any card"
set Error = $(CANNOT_FIND_ANY_CARD)
set CommonStatus = STATUS_USERCANCEL
set from = "end"
goto nonfatal
endif
Debug-Output $(ThisInfFileName)" Card Information: "$(CardInfo)
set AdapterList = $(CardInfo)
set C320Present = $(FALSE)
set C320TPresent = $(FALSE)
ForListDo $(AdapterList)
set EISAId = *($($),3)
ifint $(EISAId) == $(C320_EISA_ID)
set C320NTPresent = $(TRUE)
Debug-Output $(ThisInfFileName)" EISA Rev 3 Adapter present"
endif
ifint $(EISAId) == $(C320T_EISA_ID)
set C320TNTPresent = $(TRUE)
Debug-Output $(ThisInfFileName)" EISA Adapter present"
endif
EndForListDo
; INSTALLING SOFTWARE COMPONENTS
ForListDo $(AdapterList)
set EISAId = *($($),3)
ifint $(EISAId) == $(C320_EISA_ID)
set Option = C320NT
else-Ifint $(EISAId) == $(C320T_EISA_ID)
set Option = C320TNT
else
goto fatal
endif
ifint $($(Option)Present) == $(TRUE)
ifint $(OldVersion$(Option)Existed) == $(FALSE)
Ifstr(i) $(DoCopy) == "YES"
Debug-Output $(ThisInfFileName)" Verifying source directories for "$(Option)
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Goto ShellCodeError
Else-Ifstr(i) $($R0) == STATUS_FAILED
Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
Endif
Set SrcDir = $($R1)
Endif
Debug-Output $(ThisInfFileName)" Copying files for "$(Option)" driver, SrcDir: "$(SrcDir)
install "Install-Option"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
Debug-Output $(ThisInfFileName)" Adding S/W Component in Registry for "$(Option)
Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
$(ProductSoftware$(Option)Name), +
$(ProductSoftware$(Option)Name), +
$(ProductSoftware$(Option)Title), $(STF_CONTEXTINFNAME), +
$(ProductSoftware$(Option)ImagePath), "kernel", "NDIS", {}, "",+
$(NetEventDLL)
Set OEM_ABANDON_SW_OPTIONS = >($(OEM_ABANDON_SW_OPTIONS), $(ProductSoftware$(Option)Name))
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(ThisInfFileName)" Registry error: add software components"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
goto fatalregistry
endif
set OldVersion$(Option)Existed = $(TRUE)
set SoftProductKey = $($R1)
Set SoftNetRuleKey = $($R2)
Set SoftServiceKey = $($R3)
Set SoftParameterKey = $($R4)
Set SoftLinkageKey = $($R5)
set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
{MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
{MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
{Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftware$(Option)Title)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftware$(Option)Description)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftware$(Option)Name)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Debug-Output $(ThisInfFileName)" Adding value to S/W Product key for "$(Option)
Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(ThisInfFileName)" Registry error: add value list"
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
goto fatalregistry
endif
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftware$(Option)Type)},+
{use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftware$(Option)Use)}, +
{bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftware$(Option)BindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftware$(Option)Class)}, +
{bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftware$(Option)Bindable)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Debug-Output $(ThisInfFileName)" Adding value to S/W NetRule key for "$(Option)
Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(ThisInfFileName)" Registry error: add value list."
goto fatalregistry
endif
else
Debug-Output $(ThisInfFileName)" S/W for "$(Option)" already exists, not re-installing"
endif
endif
EndForListDo
; INSTALLING HARDWARE COMPONENTS
ForListDo $(AdapterList)
set BusNum = *($($),1)
set SlotNum = *($($),2)
set EISAId = *($($),3)
ifint $(EISAId) == $(C320_EISA_ID)
set Option = C320NT
else-Ifint $(EISAId) == $(C320T_EISA_ID)
set Option = C320TNT
else
goto fatal
endif
Debug-Output $(ThisInfFileName)" Bus: "$(BusNum)" Slot: "$(SlotNum)" EISAID: "$(EISAId)" Option: "$(Option)
Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
$(SlotNum), $(ProductHardware$(Option)Description), $(ProductHardware$(Option)Name)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr $($R0) != "NO_ERROR"
set Error = $($R0)
goto fatal
endif
ifstr(i) $($R1) != "YES"
Debug-Output $(ThisInfFileName)" Adding H/W Component "$(Option)" Slot: "$(SlotNum)
Shell $(UtilityInf), AddHardwareComponent,$(ProductHardware$(Option)Name),$(STF_CONTEXTINFNAME),$(ProductKey$(Option)Name)
ifint $($R4) != -1
Set OEM_ABANDON_HW_OPTIONS = >($(OEM_ABANDON_HW_OPTIONS), {$(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4),$(ProductSoftware$(Option)Name)})
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" Cannot add hardware component"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(ThisInfFileName)" Registry error: add hardware component"
Debug-Output $(ThisInfFileName)" Registry Error Index: "$(RegistryErrorIndex)
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
goto fatalregistry
endif
set KeyAdapter = $($R1)
set KeyAdapterRules = $($R2)
set KeyAdapterParameters = $($R3)
set AdapterNumber = $($R4)
set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Name)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Debug-Output $(ThisInfFileName)" Adding H/W Component Value"
Shell $(UtilityInf), AddValueList, $(KeyAdapter), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
Shell $(UtilityInf), GetBusTypeNum
set BusTypeNum = $($R1)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error."
goto ShellCodeError
endif
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
{CardType,$(NoTitle),$(!REG_VT_DWORD),$(CardTypeValue)},+
{TransmitQDepth,$(NoTitle),$(!REG_VT_DWORD),20},+
{ReceiveBuffers,$(NoTitle),$(!REG_VT_DWORD),32},+
{BurstSize,$(NoTitle),$(!REG_VT_DWORD),63}+
}
Debug-Output $(ThisInfFileName)" Adding H/W Component parameters"
Shell $(UtilityInf), AddValueList, $(KeyAdapterParameters), $(NewValueList)
CloseRegKey $(KeyParameters)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error."
goto ShellCodeError
endif
set TempProdName = """"$(ProductHardware$(Option)Name)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardware$(Option)BindForm)
set NewValueList = {+
{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)},+
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)},+
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}+
}
Debug-Output $(ThisInfFileName)" Adding H/W Component rules"
Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error."
goto ShellCodeError
endif
CloseRegKey $(KeyAdapter)
CloseRegKey $(KeyAdapterParameters)
CloseRegKey $(KeyAdapterRules)
else
Debug-Output $(ThisInfFileName)" Adapter already installed in Slot: "$(SlotNum)
endif
EndForListDo
goto writeparameters
writeparameters = +
EndWait
goto successful
bindingadapter =+
set Error = "Binding: Sorry, not yet implemented."
goto fatal
removeadapter = +
Ifstr(i) $(ProductKeyC320NTName) == $(!NTN_RegBase)
Debug-Output $(ThisInfFileName)" removing S/W component C320NT"
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareC320NTName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
else-Ifstr(i) $(ProductKeyC320TNTName) == $(!NTN_RegBase)
Debug-Output $(ThisInfFileName)" removing S/W component C320TNT"
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareC320TNTName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
else
Debug-Output $(ThisInfFileName)" Opening NTN_RegBase = "$(!NTN_RegBase)
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) NetAdapterKey
Ifstr $(NetAdapterKey) == $(KeyNull)
Debug-Output $(ThisInfFileName)" Could not open Adapter key"
goto fatalregistry
else
GetRegValue $(NetAdapterKey), "ServiceName", ServiceNameInfo
set ServiceName = *($(ServiceNameInfo), 4)
Debug-Output $(ThisInfFileName)" ServiceName in NTN_RegBase is "$(ServiceName)
GetRegValue $(NetAdapterKey), "ProductName", ProductNameInfo
set Option = *($(ProductNameInfo), 4)
Debug-Output $(ThisInfFileName)" ProductName in NTN_RegBase is "$(Option)
CloseRegKey $(NetAdapterKey)
ifstr(i) $(ServiceName) != ""
Debug-Output $(ThisInfFileName)" Removing "$(Option)" H/W"
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftware$(Option)Name), $(!NTN_RegBase)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
endif
endif
goto end
UpgradeSoftware = +
ifstr(i) $(ProductKeyC320NTName) == $(!NTN_RegBase)
set Option = C320NT
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyC320NTName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
Debug-Output $(ThisInfFileName)" Upgrading C320NT S/W"
GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
set Version = *($(VersionInfo), 4)
Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
set !UG_Filename = $($R0)
ifstr(i) $(!UG_Filename) != ""
Debug-Output $(ThisInfFileName)" Copying C320NT sys & inf files for C320NT"
install "Install-Update"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
endif
SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
ifint $(Version) != $(ProductVersion)
endif
CloseRegKey $(KeyProduct)
else
goto fatalregistry
endif
else-Ifstr(i) $(ProductKeyC320TNTName) == $(!NTN_RegBase)
set Option = C320TNT
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyC320TTName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
Debug-Output $(ThisInfFileName)" Upgrading C320TNT S/W"
GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
set Version = *($(VersionInfo), 4)
Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
set !UG_Filename = $($R0)
ifstr(i) $(!UG_Filename) != ""
Debug-Output $(ThisInfFileName)" Copying C320TNT sys & inf files"
install "Install-Update"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
endif
SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
ifint $(Version) != $(ProductVersion)
endif
CloseRegKey $(KeyProduct)
else
goto fatalregistry
endif
else
Debug-Output $(ThisInfFileName)" H/W upgrade requested, just make sure the H/W component exists"
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) NetworkCardKey
Ifstr(i) $(NetworkCardKey) != $(KeyNull)
GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
set ServiceName = *($(ServiceNameInfo), 4)
OpenRegKey $(NetworkCardKey) "" "NetRules" $(MAXIMUM_ALLOWED) NetRuleKey
Ifstr(i) $(NetRuleKey) != $(KeyNull)
else
goto fatalregistry
endif
CloseRegKey $(NetRules)
CloseRegKey $(NetworkCardKey)
else
goto fatalregistry
endif
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ServiceName) +
$(MAXIMUM_ALLOWED) ServiceKey
Ifstr(i) $(ServiceKey) != $(KeyNull)
Debug-Output $(ThisInfFileName)" Service "$(ServiceName)" exists"
CloseRegKey $(ServiceKey)
else
goto fatalregistry
endif
endif
goto end
successful = +
goto end
abandon = +
ForListDo $(OEM_ABANDON_HW_OPTIONS)
Debug-Output $(ThisInfFileName)" H/W Abandon: Component: "*($($),1)" S/W Name: "*($($),2)
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
*($($),2), *($($),1)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
EndForListDo
ForListDo $(OEM_ABANDON_SW_OPTIONS)
Debug-Output $(ThisInfFileName)" S/W Abandon: Component: "$($)
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$($), FALSE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(ThisInfFileName)" ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
EndForListDo
goto end
warning = +
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr(i) $($R1) == "OK"
goto $(to)
else-ifstr(i) $($R1) == "CANCEL"
goto $(from)
else
goto "end"
endif
nonfatalinfo = +
Set CommonStatus = STATUS_USERCANCEL
Set Severity = STATUS
goto nonfatalmsg
nonfatal = +
Set Severity = NONFATAL
goto nonfatalmsg
nonfatalmsg = +
ifstr(i) $(Error) == ""
Set Severity = NONFATAL
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr(i) $($R1) == "OK"
goto $(from)
else
goto "end"
endif
fatalregistry = +
Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
fatal = +
ifstr(i) $(Error) == ""
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto setfailed
ShellCodeError = +
set DlgType = "MessageBox"
set STF_MB_TITLE = "Error: "$(FunctionTitle)
set STF_MB_TEXT = "Shell Code Error"
set STF_MB_TYPE = 1
set STF_MB_ICON = 3
set STF_MB_DEF = 1
ui start "Error Message"
goto setfailed
setfailed = +
set CommonStatus = STATUS_FAILED
ifstr(i) $(OEM_ABANDON_ON) == TRUE
set OEM_ABANDON_ON = FALSE
goto abandon
endif
goto end
end = +
goto term
term = +
Return $(CommonStatus)
[Install-Option]
set STF_VITAL = ""
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
ifstr(i) $(DoConfig) == "YES"
endif
Exit
[Install-Update]
set STF_VITAL = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[Source Media Descriptions]
1 = "Cisco EISA Driver Disk" , TAGFILE = disk1
2 = "Windows NT Setup CD-ROM Disk" , TAGFILE = disk2
99 = "LMHOST disk", TAGFILE = lmhosts
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
[Files-Inf]
1,oemsetup.inf, SIZE=1000, RENAME=$(!UG_Filename)
[Files-C320NT]
1,c320nt.sys , SIZE=46000
[Files-C320TNT]
1,c320tnt.sys, SIZE=47000